package com.eastfair.venueservice.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementSettleStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementCompanyTypeEnum;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementRefundStatusEnum;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.eastfair.vo.BaseVO;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 结算记录
 * </p>
 *
 * @author linan
 * @since 2023-01-10
 */
@Data
@ApiModel(value = "ExhibitionSettlementVO", description = "结算记录")
public class ExhibitionSettlementVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 最新结算日期
     */
    @ApiModelProperty(value = "最新结算日期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDateTime settlementTime;
    /**
     * 场馆综合展会ID
     */
    @ApiModelProperty(value = "场馆综合展会ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionManageId;
    /**
     * 结算单号
     */
    @ApiModelProperty(value = "结算单号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "结算单号长度不能超过255")
    private String settlementNo;
    /**
     * 企业类型 #{HOME_SERVICE_PROVIDER:主场服务商;MAIN_TRANSPORT_SERVICE_PROVIDER:主运服务商;MATCHING_SERVICE_PROVIDER:配套服务商}
     */
    @ApiModelProperty(value = "企业类型 #{HOME_SERVICE_PROVIDER:主场服务商;MAIN_TRANSPORT_SERVICE_PROVIDER:主运服务商;MATCHING_SERVICE_PROVIDER:配套服务商}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ExhibitionSettlementCompanyTypeEnum companyType;
    /**
     * 企业id
     */
    @ApiModelProperty(value = "企业id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long companyId;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "企业名称长度不能超过255")
    private String companyName;
    /**
     * 结算金额
     */
    @ApiModelProperty(value = "结算金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal settlementAmount;
    /**
     * 已收款
     */
    @ApiModelProperty(value = "已收款")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal received;
    /**
     * 应收款
     */
    @ApiModelProperty(value = "应收款")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal receivables;
    /**
     * 合计应收金额
     */
    @ApiModelProperty(value = "合计应收金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal totalReceivables;
    /**
     * 开票状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;INVOICED:已开票;REJECTED:被驳回}
     */
    @ApiModelProperty(value = "开票状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;INVOICED:已开票;REJECTED:被驳回}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String invoicingStatus;
    /**
     * 应开票金额
     */
    @ApiModelProperty(value = "应开票金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal invoicedAmount;
    /**
     * 已开票金额
     */
    @ApiModelProperty(value = "已开票金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal hasInvoicedAmount;
    /**
     * 退款状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;REFUNDED:已退款;NO_REFUND:无须退款;REJECTED:被驳回}
     */
    @ApiModelProperty(value = "退款状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;REFUNDED:已退款;NO_REFUND:无须退款;REJECTED:被驳回}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ExhibitionSettlementRefundStatusEnum refundStatus;
    /**
     * 应退金额
     */
    @ApiModelProperty(value = "应退金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal refundAmount;

    /**
     * 服务总金额
     */
    @ApiModelProperty(value = "服务总金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal totalServicePrice;

    /**
     * 附加费总金额
     */
    @ApiModelProperty(value = "附加费总金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal totalSurcharge;

    /**
     * 结算明细
     */
    @ApiModelProperty(value = "结算明细")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<ExhibitionSettlementDetailVO> exhibitionSettlementDetail;

    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String exhibitionName;

    /**
     * 结算状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;HAS_SETTLE:已结算}
     */
    @ApiModelProperty(value = "结算状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;HAS_SETTLE:已结算}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ExhibitionSettlementSettleStatusEnum settleStatus;

    /**
     * 展馆编码
     */
    @ApiModelProperty(value = "展馆编码")
    @Size(max = 64, message = "展馆编码长度不能超过64")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String spaceCode;

    /**
     * 展馆号
     */
    @ApiModelProperty(value = "展馆号")
    @Size(max = 100, message = "展馆号长度不能超过100")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String spaceName;

    /**
     * 展位编码
     */
    @ApiModelProperty(value = "展位编码")
    @Size(max = 64, message = "展位编码长度不能超过64")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String siteCode;

    /**
     * 展位号
     */
    @ApiModelProperty(value = "展位号")
    @Size(max = 100, message = "展位号长度不能超过100")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String siteName;

    /**
     * 服务已收款
     */
    @ApiModelProperty(value = "服务已收款")
    @TableField(value = "service_received")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal serviceReceived;

    /**
     * 服务应收款
     */
    @ApiModelProperty(value = "服务应收款")
    @TableField(value = "service_receivables")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal serviceReceivables;

    /**
     * 附加费服务已收款
     */
    @ApiModelProperty(value = "附加费服务已收款")
    @TableField(value = "surcharge_received")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal surchargeReceived;

    /**
     * 附加费服务应收款
     */
    @ApiModelProperty(value = "附加费服务应收款")
    @TableField(value = "surcharge_receivables")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal surchargeReceivables;
    /**
     * 优惠金额
     */
    @ApiModelProperty(value = "优惠金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal discountAmount;

    /**
     * 违规罚款金额
     */
    @ApiModelProperty(value = "违规罚款金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal violationPunish;

    /**
     * 保证金实缴金额
     */
    @ApiModelProperty(value = "保证金实缴金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal bondAmount;

    /**
     * 保证金应缴金额
     */
    @ApiModelProperty(value = "保证金应缴金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal payableBondAmount;

}
